filename = 'aaa.txt'
print(filename.split('.'))
print(filename.split('.')[-1])